package com.cncsi.entity;

/**
 * XX
 *
 * @author 不思议灬
 * @Param
 * @date 09:05
 */
public enum OrderStatus {

    WAITED("未审批",0),PDONE("项目经理审批",1),DDONE("部门经理审批",2),FINISH("通过",3);
    // 成员变量
    private String name;
    private int index;
    private OrderStatus(String name, int index) {
        this.name = name;
        this.index = index;
    }
    // 普通方法
    public static String getName(int index) {
        for (OrderStatus c : OrderStatus.values()) {
            if (c.getIndex() == index) {
                return c.name;
            }
        }
        return null;
    }
    // get set 方法
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getIndex() {
        return index;
    }
    public void setIndex(int index) {
        this.index = index;
    }

}
